package org.lboot.idmo.module.role.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("授权参数")
public class NewGrantParams {

    @NotNull(message = "角色ID不可为空")
    @ApiModelProperty("角色ID")
    Long roleId;

    @NotNull(message = "用户ID不可为空")
    @ApiModelProperty("用户ID")
    Long userId;
}
